<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DRYCMS-用户中心</title>
<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css">
<link rel="stylesheet" href="/document/document.css">
<script src="/layuiadmin/layui/layui.js"></script>
<script src="/document/document.js"></script>
</head>
<body>
<!---->
{% include '@Html/document/header.html.twig' %}
<!---->
<div class="layui-main">
    <div class="layui-carousel" id="banner">
        <div carousel-item>
            <div class="dry-center" style="line-height:200px;font-size:50px;">基于PHP+MYSQL的框架DRYCMS上线了</div>
        </div>
    </div>
</div>
<!---->
<div class="layui-main dry-content dry-margin-top">
    <div class="dry-left-navigator dry-navigator-skin-document">
        <ul class="layui-nav layui-nav-tree" id="leftMenu">
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:void(0);">用户</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我的资料</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">收益明细</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">余额明细</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我的优惠码</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我的银行卡</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">提现记录</a></dd>
                    <dd><a href="javascript:void(0);" url="" id="logout">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:void(0);">帖子</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">发表一个帖子</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我发表的帖子</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我收藏的帖子</a></dd>
                    <dd><a href="javascript:void(0);" url="/Html/Coming/default">我回复的帖子</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:void(0);">订单</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" url="/Html/Order/index">订单列表</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="dry-right-content">
        <iframe frameborder="0" scrolling="no" width="100%" height="100%" id="iframe" src="javascript:void(0);"></iframe>
    </div>
    <div class="layui-clear"></div>
</div>
<!---->
{% include '@Html/document/footer.html.twig' %}
<!---->
<script>
layui.config({base: '/layuiadmin/modules/'});
layui.use(["element", "jquery", "carousel", "layer", "cookies"], function(element, $, carousel, layer, cookies){
    isLogin("/Api/User/isLogin", "/Html/Qr/login", 3000);
    carousel.render({elem: '#banner', width: '100%', height: '200px', arrow: 'always'});
    $("#iframe").get(0).onload = function(){
        var min = 655;
        iframe.height = min;
        var height = Math.max(iframe.contentWindow.document.body.scrollHeight, iframe.contentWindow.document.documentElement.scrollHeight);
        iframe.height = height;
    };
    var selector = "#leftMenu li dl dd a";
    $(selector).click(function(){
        if($(this).hasClass("active")){
            return false;
        }
        $(selector).removeClass("active");
        $(this).addClass("active");
        var url = $(this).attr("url");
        var token = getCookie("token");
        var src = url + "?device=html&token=" + token;
        if(!url){
            return false;
        }
        $("#iframe").attr("src", src);
    });
    $(selector).eq(0).trigger("click");
    $("#logout").click(function(){
        cookies.removeItem("token", "/");
    });
});
</script>
</body>
</html>